home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / newsgroups / misc.19980424-19980901 / 000215_news@newsmaster….columbia.edu _Wed Jun 17 03:55:26 1998.msg < prev    next >
Internet Message Format  |  1998-08-31  |  9KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id DAA13963
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Wed, 17 Jun 1998 03:55:26 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id DAA11386
  7.     for kermit.misc@watsun; Wed, 17 Jun 1998 03:55:25 -0400 (EDT)
  8. Path: news.columbia.edu!watsun.cc.columbia.edu!jaltman
  9. From: jaltman@watsun.cc.columbia.edu (Jeffrey Altman)
  10. Newsgroups: comp.protocols.misc,comp.bbs,alt.comp,alt.computer,alt.computer.security,aus.computers.sun,comp.bbs.misc,comp.dcom.modem,comp.protocols.tcp-ip,comp.protocols.tcpip,comp.protocols.ppp,comp.protocols.kermit.misc,comp.unix.sun,comp.unix.solaris,comp.unix
  11. Subject: Re: Z-Modem vs FTP: Is the following an accurate comparison?
  12. Date: 17 Jun 1998 07:44:39 GMT
  13. Organization: Columbia University
  14. Lines: 174
  15. Distribution: inet
  16. Message-ID: <6m7s57$s99$1@apakabar.cc.columbia.edu>
  17. References: <35867DA0.A4FB2608@interlog.com>
  18. NNTP-Posting-Host: watsun.cc.columbia.edu
  19. Xref: news.columbia.edu comp.protocols.misc:7402 alt.computer:5834 aus.computers.sun:4130 comp.bbs.misc:37887 comp.protocols.tcp-ip:60407 comp.protocols.ppp:22635 comp.protocols.kermit.misc:8893 comp.unix.solaris:163564
  20.  
  21. In article <35867DA0.A4FB2608@interlog.com>,
  22. James Coe  <jcoe@interlog.com> wrote:
  23. : Z-Modem vs FTP
  24. : Speed
  25. : Z-Modem is usually much faster than FTP.  This is because most
  26. : implementations of Z-Modem use internal data compression routines and do
  27. : not perform Cyclic Redundancy Checks (CRC).
  28. : FTP is slower than Z-Modem since no data compression is used and CRC is
  29. : performed.
  30.  
  31. Have you done any real performance testing?
  32.  
  33. If so, with what products?
  34.  
  35. FTP relies on TCP/IP to perform all error correction and data verification.
  36. It does not perform any additional data checks.  It has no need to.
  37.  
  38. When Zmodem is used over a Telnet or Rlogin connection not only does
  39. the data transfer occur on the same TCP/IP link as is used by FTP, 
  40. the data is also being passed through a psuedo-terminal and the 
  41. telnetd or rlogind which must perform per-character checking.  
  42.  
  43. I would have an extremely hard time believing that Zmodem would be 
  44. significantly faster unless the data that is being transfered is 
  45. highly compressible with Run-Length Encoding.  The RLE compression
  46. is only available in Zmodem-90 implementations and not in the Zmodem
  47. implementations available in most non-Omen Technologies implementations.
  48.  
  49. : Error Checking/Reliability
  50. : Since Z-Modem does not use CRC routines, transmission errors are not
  51. : easily detected  or corrected.
  52. : FTP has full error detection capabilities as well as very good error
  53. : recovery procedures.
  54.  
  55. Since both FTP and ZModem are being used over TCP/IP, neither one needs
  56. to worry about data corruption (except that Zmodem needs to know how
  57. to properly process data over Telnet protocol or a 7-bit NVT connection
  58. if Bidirectional Binary mode is not negotiated.)  The only item that
  59. FTP and Zmodem have to worry about is the connection being dropped
  60. prematurely.
  61.  
  62. Many implementations of Zmodem protocol support a RESUME option
  63. to restart pre-maturely terminated connections.  Some FTP implementations 
  64. have similar support but most do not.
  65.  
  66. Zmodem also has a potential problem with TEXT file transfers that
  67. require RESUME because of the way it handles end of line translation.
  68.  
  69. : Additional Purchasing
  70. : Z-Modem is not part of the standard Sun Solaris Operating System.  Thus,
  71. : it must be purchased from some third party vendor.
  72. : FTP is part of the standard Sun Solaris configuration.
  73.  
  74. Public domain implemenations of Zmodem are available from the
  75. Free Software Foundation although the versions from Omen Technology 
  76. are more feature complete.
  77.  
  78. : Customizing for GPS Needs
  79. : For the GPS system, Z-modem must be customized so that there is some
  80. : indicator that the file upload is complete and processing can proceed.
  81. : In order to do this, source code must be available.
  82. : FTP must also be customized in this way.  Oasis customized the FTP
  83. : daemon so that the file will be transferred to a processing directory
  84. : when the file upload is complete.
  85.  
  86. Zmodem source code may be licensed from Omen Technologies.
  87.  
  88. : Connection
  89. : In order to use Z-Modem, the user must dial into the UNIX box and be
  90. : connected as a ∩┐╜real∩┐╜ UNIX user.  The user can then initiate a Z-Modem
  91. : protocol upload.  Some sort of server software which allows terminal
  92. : access is necessary on the UNIX box.
  93. : In order to use FTP, the user connects to the PPP server and then
  94. : launches an FTP application.  This application is connected as a FTP
  95. : user.
  96.  
  97. Zmodem can be used over a PPP link via Telnet or Rlogin just as is done
  98. with FTP.  If you are attempting to compare Dial-Up connections to 
  99. PPP links then that is the most likely cause for the discrepencies 
  100. of your comparisions.  PPP adds a great deal of overhead.  On a dial-up
  101. connection there is no additional overhead.  So Zmodem will be faster.
  102.  
  103. However, if you are going over a dial-up connection then everything
  104. I said earlier about error correction goes out the window.  On a dial-up
  105. connection Zmodem will have to use CRC checks to detect errors.  If
  106. it does not, and an error occurs, Zmodem has to wait until the entire
  107. file is transfered before it can detect the error and then rollback.
  108. This means that even one error will erase all the performance benefits
  109. you may have gained.
  110.  
  111. The "user" is the same regardless of whether a dial-up or FTP 
  112. connection is made.  One is given shell access the other is not.
  113. That is the only difference.
  114.  
  115. : Security
  116. : Since the user is connected as a ∩┐╜real∩┐╜ UNIX user, there are fewer
  117. : restrictions that can be placed on them.
  118.  
  119. The user is given a shell.  The Shell can be replaced with anything 
  120. that you wish.
  121.  
  122. : Since the user is connected as a ∩┐╜ftp∩┐╜ UNIX user, there are many
  123. : restrictions that can be placed on the account.  For example, the ftp
  124. : account can be restricted such that they can only put the file on the
  125. : system.  They will not be able to ∩┐╜get∩┐╜ files, change from their
  126. : directory, list files, etc.
  127. : Also, this method allows the use of 2-levels of authentication.  That
  128. : is, the user must sign into their PPP account and then into their ftp
  129. : account.  Both of these accounts could have different passwords (or even
  130. : different User ID∩┐╜s) and the PPP account could use CHAP for password
  131. : authentication (password not sent ∩┐╜in the clear∩┐╜).
  132.  
  133. Since the PPP connection can be made from anywhere you can't trust
  134. any aspect of the PPP authentication when the FTP authentication 
  135. takes place.
  136.  
  137. : UNIX Support
  138. : Since ∩┐╜real∩┐╜ UNIX accounts need to be created, a UNIX system
  139. : administrator is necessary to create and manage/maintain the UNIX user
  140. : accounts.
  141. : ∩┐╜FTP∩┐╜ UNIX accounts can be generated automatically.
  142.  
  143. Since the accounts are one and the same there is no difference in
  144. administrative overhead.
  145.  
  146. : PC Support
  147. : Z-Modem is much easier to support as it is just a terminal connection.
  148. : That is, no TCP/IP set-up is required.
  149. : FTP is more difficult to install and support since it requires Win95
  150. : dial-up networking to be configured.
  151.  
  152. I would agree that Dial-Up Networking is difficult to automate
  153. on Win95.  There is no scriptable way to connect and disconnect
  154. a PPP connection.
  155.  
  156. The ease of use of the terminal connection is really determined 
  157. by the application that you are using.
  158.  
  159. : General
  160. : Considering the speed and error issues, Z-Modem should only be used when
  161. : the file is large and can be easily resent.  In our case, the maximum
  162. : size of a single transaction is only  150 kb and we expect a frequency
  163. : of ∩┐╜ transaction per merchant per day.
  164. : FTP is better when file stability is necessary and speed is not an issue
  165. : as is true in our case.  FTP is also preferable in terms of security,
  166. : availability and support on the UNIX side.  The biggest drawback to FTP
  167. : appears to be the PC support issues.
  168.  
  169. These conclusions are unwarranted.  The comparisons are not equivalent.
  170.  
  171. ---
  172.  
  173. The decision you have to make is whether or not you want to use
  174. Dial-Up Networking to make a PPP connection.  If the answer to that
  175. question is 'yes' then you need to compare FTP, Zmodem, and Kermit
  176. over the PPP connection for performance, reliability, and automation.
  177.  
  178. If the answer to the question is 'no', then you have to compare
  179. various dial-up packages which implement Zmodem and Kermit for
  180. performance, reliability, and automation.
  181.  
  182. I believe that regardless of which way you decide that C-Kermit for
  183. Solaris and Kermit 95 for Win95 will provide you with the best 
  184. solution for your project.
  185.  
  186. See http://www.kermit-project.org/ for details.
  187.  
  188.     Jeffrey Altman * Sr.Software Designer * Kermit-95 for Win32 and OS/2
  189.                  The Kermit Project * Columbia University
  190.               612 West 115th St #716 * New York, NY * 10025
  191.   http://www.kermit-project.org/k95.html * kermit-support@kermit-project.org